blob: 3669eb7d2a09e95eca58753324d7f467853bd2fe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import getRates from "$lib/rates";
import { get } from "$lib/utils";
export const load = async ({ depends, params: { id }, parent }) => {
depends("app:payments");
const data = await get(`/fund/${id}`);
data.managers = await get(`/fund/${id}/managers`);
const rates = await getRates();
const { user } = await parent();
data.rate = rates[user?.currency || "USD"];
return data;
};
|